import React, { useEffect, useState } from 'react'
import { getuserinfo } from "../apis/head.js"
import "../assets/css/home.less"
export default function Portrait() {
    useEffect(() => {
        console.log(userinfo);
    }, [])
    const [userinfo, setuserinfo] = useState(JSON.parse(localStorage.getItem('user')))
    const getuser = async () => {
        // const res = await getuserinfo()
        // console.log(res);
    }
    return (
        <>
            <img src="" alt="" />
            <span>{userinfo.username}</span>
        </>
    )
}
